package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SSpaInfo extends Object implements IMessageBase
    {
        public var spaId:int;
        public var copyCode:int;
        public var playerNum:int;
        public var maxNum:int;
        public const _type:int = 48;
        public static var _regist:SSpaInfo = new SSpaInfo(true);

        public function SSpaInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SSpaInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.spaId);
            param1.writeInt(this.copyCode);
            param1.writeInt(this.playerNum);
            param1.writeInt(this.maxNum);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.spaId = param1.readInt();
            this.copyCode = param1.readInt();
            this.playerNum = param1.readInt();
            this.maxNum = param1.readInt();
            
        }

    }
}
